#include <QApplication>
#include <QMessageBox>

#include <QSurfaceFormat>

#include "ArcGISRuntimeEnvironment.h"

#include "MyScene.h"

using namespace Esri::ArcGISRuntime;

int main(int argc, char *argv[])
{
    QApplication application(argc, argv);

    const QString apiKey = QString("AAPK609af7fcb9cf4958849fcf480068447asZwSe6JgJNTu_KDzk69njW02iBtdOiZAgLAuv0r_R0q-fqsZyp5hmUjubneLo1f7");
    if (apiKey.isEmpty())
    {
        qWarning() << "Use of Esri location services, including basemaps, requires" <<
            "you to authenticate with an ArcGIS identity or set the API Key property.";
    }
    else
    {
        ArcGISRuntimeEnvironment::setApiKey(apiKey);
    }

    MyScene applicationWindow;
//    applicationWindow.setMinimumWidth(applicationWindow.wdWidth);
//    applicationWindow.setMinimumHeight(applicationWindow.wdHeigth);
    applicationWindow.setGeometry(500,200,applicationWindow.wdWidth,applicationWindow.wdHeigth);
    applicationWindow.setWindowTitle("TQGiser@SCCS.com");
    applicationWindow.show();

    return application.exec();
}
